package com.ikangtai.shecare.common.util;

public class URLContainer {

	//正式服务器
	public static String WIRELESS = "http://ikangtai.com/Thermometer/";
	
	//测试服务器
//	public static String WIRELESS = "http://test.ikangtai.com/test/";
	
	public static String getPDF() {
		return "http://test.ikangtai.com/MadePDF";
	}
	
//	public static String getPDF() {
//		return "http://ikangtai.com/madePDF_formal";
//	}
	
	public static String getUserLoginUrl() {
		return WIRELESS + "user/login.json";
	}

	public static String getUserQuitUrl(String auth_token) {
		return WIRELESS + "user/logout.json?auth_token=" + auth_token;
	}

	public static String getUserRegistUrl() {
		return WIRELESS + "user/register.json";
	}
	
	public static String getUserRegistSimpleUrl() {
		return WIRELESS + "user/register_simple.json";
	}
	/**
	 * 
	 * @param phone_number
	 * @param type
	 *            type: 类型 0 - 注册 1 - 登录 2 - 登出 3 - 重置
	 * @return
	 */
	public static String getUserCodeUrl(String phone_number, int type) {
		return WIRELESS + "user/get_code.json?phone_number=" + phone_number
				+ "&type=" + type;
	}

	/**
	 * 检查用户名是否可用
	 * 
	 * @param username
	 * @return
	 */
	public static String getUserCheckNameUrl(String username) {
		return WIRELESS + "user/check_name.json?name=" + username;
	}

	public static String getUserCheckNumberUrl(String number) {
		return WIRELESS + "user/check_number.json?number=" + number;
	}

	public static String getUserResetPasswordUrl() {
		return WIRELESS + "user/reset_password.json";
	}

	public static String getUserSyncUrl(String auth_token) {
		return WIRELESS + "sync/get.json?auth_token=" + auth_token;
	}

	public static String getUserSyncByTimeUrl(String auth_token) {
		return WIRELESS + "sync/get_by_range.json?auth_token=" + auth_token;
	}

	public static String getUserAddSyncUrl(String auth_token) {
		return WIRELESS + "sync/add.json?auth_token=" + auth_token;
	}

	public static String getUserDeleteSyncUrl(String auth_token) {
		return WIRELESS + "sync/delete.json?auth_token=" + auth_token;
	}
	
	public static String getInfoUrl(String auth_token) {
		return WIRELESS + "user/getinfo.json?auth_token=" + auth_token;
	}

	public static String getCode(int code) {
		String str = null;
		switch (code) {
		case 200:

			break;
		case 201:

			break;
		case 202:

			break;
		case 203:

			break;
		case 204:

			break;
		case 205:

			break;
		case 206:

			break;
		case 207:

			break;
		case 208:

			break;
		case 209:

			break;
		case 210:

			break;
		case 555:

			break;
		default:
			break;
		}
		return str;
	}
}
